import os




def file__openRead(file):    
    f = open(file,'r',encoding ="UTF-8")
    data = f.read()
    return data


def file__openWrite(file,data):
    # print(file)
    # print(data)
    #判断有木有文件，如果没有就不删除
    if os.path.exists(file) == False:
        pass
    else:
        os.remove(file)
    f = open(file,'w',encoding ="UTF-8")
    f.write(data)

